package com.moran.beetlsql.learn.controller;

import com.moran.beetlsql.common.ResultVo;
import com.moran.beetlsql.learn.service.WebsitesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author wnf
 * @Date 2025-07-10
 */
@RestController
@RequestMapping("learn/")
public class WebsitesController {

    @Autowired
    private WebsitesService websitesService;

    @RequestMapping("queryWebsitesList")
    public ResultVo queryWebsitesList() {
        return websitesService.queryWebsitesList();
    }

    @RequestMapping("queryWebsitesLogList")
    public ResultVo queryWebsitesLogList() {
        return websitesService.queryWebsitesLogList();
    }
}
